<form name="formStyle" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">	
	<table>
	<td class="lblStyle"><?php echo $lang['STYLE']; ?></td>
	<td><select name="style" onchange="javascript: document.formStyle.submit(); ">
	<?php
		$styles = scandir('styles');
		foreach ($styles as $styl)
		{
			if($styl != '.' && $styl != '..')
			{
				echo '<option value="'.$styl.'" '. ($styl==$style ? ' selected="selected"' : '') .'>'.$styl.'</option>';
			}
		}
	?>
	</select></td>
</table>
</form>